

class Duck:
    def quack(self):
        print("quack")

    def fly(self):
        print("im flying")

class Turkey:

    def gobble(self):
        print("gobble ")
    def fly(self):
        print("iam flying a short distance")


class TurkeyAdapter(Duck):
    tt =1
    turkey = Turkey()
    def quack(self):
        self.turkey.gobble()
    def fly(self):
        for i in range(3):
            self.turkey.fly()


duck =Duck()
duck.quack()
duck.fly()


turkey_adapter = TurkeyAdapter()
turkey_adapter.quack()
turkey_adapter.fly()


